package org.jeecg.modules.demo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:用户等级记录表
 * @Author: jeecg-boot
 * @Date:   2023-10-26
 * @Version: V1.0
 */
@Data
@TableName("yx_user_level")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yx_user_level对象", description="yx_user_level")
public class YxUserLevel implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**用户uid*/
	@Excel(name = "用户uid", width = 15)
    @ApiModelProperty(value = "用户uid")
    private Integer uid;
	/**等级vip*/
	@Excel(name = "等级vip", width = 15)
    @ApiModelProperty(value = "等级vip")
    private Integer levelId;
	/**会员等级*/
	@Excel(name = "会员等级", width = 15)
    @ApiModelProperty(value = "会员等级")
    private Integer grade;
	/**过期时间*/
	@Excel(name = "过期时间", width = 15)
    @ApiModelProperty(value = "过期时间")
    private Integer validTime;
	/**是否永久*/
	@Excel(name = "是否永久", width = 15)
    @ApiModelProperty(value = "是否永久")
    private Integer isForever;
	/**商户id*/
	@Excel(name = "商户id", width = 15)
    @ApiModelProperty(value = "商户id")
    private Integer merId;
	/**0:禁止,1:正常*/
	@Excel(name = "0:禁止,1:正常", width = 15)
    @ApiModelProperty(value = "0:禁止,1:正常")
    private Integer status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String mark;
	/**是否已通知*/
	@Excel(name = "是否已通知", width = 15)
    @ApiModelProperty(value = "是否已通知")
    private Integer remind;
	/**是否删除,0=未删除,1=删除*/
	@Excel(name = "是否删除,0=未删除,1=删除", width = 15)
    @ApiModelProperty(value = "是否删除,0=未删除,1=删除")
    private Integer isDel;
	/**添加时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date createTime;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;
	/**享受折扣*/
	@Excel(name = "享受折扣", width = 15)
    @ApiModelProperty(value = "享受折扣")
    private Integer discount;
    /**订单id*/
    @Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    private String orderId;
    /**成长值*/
    @Excel(name = "成长值", width = 15)
    @ApiModelProperty(value = "成长值")
    private BigDecimal growthValue;

}
